package Controller;

/**
 * Controla os eventos quando o jogo esta na tela de CREDITOS.
 * 
 * @author Edjane Catolle, Igor Henrique, Luiz Augusto, Vladmir Chicarolli
 * @version 1.0.0
 * @since 05/31/2011
 */

import View.CreditsView;

public class CreditsController extends BaseController
{
	private boolean backToMenu;
	
	public CreditsController()
	{
		backToMenu = false;
		view = new CreditsView();
		controller = this;
	}
	
	protected void ControllerHandler()
	{
		if(backToMenu)
		{
			view.ClearBuffer();		
			new MenuController();
		}
	}

	public void HandleKeyboard()
	{
		// 10 = Enter key
		if(GameControlsManager().GetKey() == 10)
		{
			backToMenu = true;
		}
	}
}
